package com.castle.fortress.admin.job.task;

import com.castle.fortress.admin.study.exam.service.StudyExamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("studyExamTask")
public class StudyExamTask implements ITask{
    @Autowired
    private StudyExamService studyExamService;
    @Override
    public void runTask(String params){
        System.out.println("更新考试状态");
        //更新考试状态
        studyExamService.updateExamStatusJob();
    }
}
